#ifndef _COIL_H
#define _COIL_H

/* Include ------------------------------------------------------------------ */
#include "main.h"
/* -------------------------------------------------------------------------- */

/* Macro -------------------------------------------------------------------- */
#define coil_on() {\
  HAL_GPIO_WritePin(COIL2_GPIO_Port, COIL2_Pin, GPIO_PIN_RESET);\
	HAL_GPIO_WritePin(COIL1_GPIO_Port, COIL1_Pin, GPIO_PIN_SET);\
}
#define coil_off() {\
  HAL_GPIO_WritePin(COIL2_GPIO_Port, COIL2_Pin, GPIO_PIN_SET);\
	HAL_GPIO_WritePin(COIL1_GPIO_Port, COIL1_Pin, GPIO_PIN_RESET);\
}
/* -------------------------------------------------------------------------- */

#endif//_COIL_H
